# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=khronos
pkgver=4.0.1
pkgrel=0
pkgdesc="Track each task's time in a simple inobtrusive way"
url="https://github.com/lainsce/khronos/"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	desktop-file-utils
	gtk4.0-dev
	json-glib-dev
	libadwaita-dev
	libgee-dev
	meson
	vala
	"
subpackages="$pkgname-lang"
source="https://github.com/lainsce/khronos/archive/refs/tags/$pkgver/khronos-$pkgver.tar.gz"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e69c5fda0ea645cd69d65bc55d3b2bfd9b3da1e4099f41fd94fdcbf11e55a30a15a6ccb46d1b678112858d4f8aae36e78f289c146b344c903eb96d689760d253  khronos-4.0.1.tar.gz
"
